from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
import time

CHROME_PATH = r"D:\chrome\depot_tools\chromium\src\out\Default\chrome.exe"
# 用编译好的chromedriver打开
CHROMEDRIVER_PATH = r"D:\chrome\depot_tools\chromium\src\out\Default\chromedriver.exe"

chrome_options = Options()
chrome_options.binary_location = CHROME_PATH
chrome_options.add_argument("--incognito")
chrome_options.add_argument("--start-maximized")
chrome_options.add_argument("--disable-notifications")
chrome_options.add_argument("--disable-popup-blocking")

service = Service(CHROMEDRIVER_PATH)
driver = webdriver.Chrome(service=service, options=chrome_options)

driver.get("https://fingerprintjs.github.io/BotD/main/")
time.sleep(600)